import service from '../utils/request';

// banner图片
export const reqGetBannerList = () => service({
	url: '/mall-api/index/findBanner',
});
// card图片
export const reqGetCardList = () => service({
	url: '/mall-api/index/findListGoods'
});
// 服务列表
export const reqGetTripList = () => service({
	url: '/mall-api/cart/getCartList'
});
// 登录
export const reqLogin = (code) => service({
	url: `/mall-api/weixin/wxLogin/${code}`
});
// 获取用户信息
export const reqGetUserInfo = () => service({
	url: '/mall-api/weixin/getuserInfo'
})
// 确认登陆
export const reqConfirmLogin = (data) => service({
	url: '/mall-api/weixin/updateUser',
	method:'post',
	data
})
// 获取服务详情
export const reqGetServiceDetails = (cardId) => service({
	url: `/mall-api/goods/${cardId}`
})
// 删除服务
export const reqDeleteService = (cardId) => service({
	url:`/mall-api/cart/delete/${cardId}`
})
// 添加
export const reqAddTrip = (goodsId,count) => service({
	url:`/mall-api/cart/addToCart/${goodsId}/${count}`
})

